package com.example.demo3.others;

import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/user")
public class UserController {

    @RequestMapping("/say")
    public String say(){
        return "1";
    }
    @RequestMapping(value = "say1", method = RequestMethod.GET)
    public String say1(){
        return "hello requestMethod.GET";
    }
    @GetMapping("get")
    public String say2(){
        return "GetMapping";
    }
    @GetMapping("post")
    public String say3(){
        return "postMapping";
    }
}
